import Request from '@/utils/Request'
//myb发布作品
export const PushWorks = (params: any) => {
  return Request({
    method: 'POST',
    url: '/mock/api/pushworks',
    data: params
  })
}
//myb 接受数据
export const getpushWorks = (id: string) => {
  return Request({
    method: 'GET',
    url: '/mock/api/getpushworks',
    params: {
      id
    }
  })
}

//删除数据

export const DelPushWorks = (id: string) => {
  return Request({
    method: 'GET',
    url: '/mock/api/delpushworks/'+id,
    // params: {
    //   id
    // }
  })
}


//添加协作人
export const addPartners=(params:any)=>{
  return Request({
    url:'/mock/api/cooperation',
    method:'POST',
     data:params
  })
}
//获取协作作品
// export const getCoopWorks=(username:any)=>{
//       return Request({
//         url:'/mock/api/xiehui/'+username,
//         method:'GET',//多个s  TMD  低级错误  

//       })
// }

export const getHui=(username : any)=>{
return Request({
method: "GET",
url :'/mock/api/xiehui/'+username

})
}


  

//删除到回收站并且渲染

export const getDelrestore=(id:any)=>{
  return Request({
    url:'/mock/api/getdelstore',
    method:"GET",
    params:{
      id
    }
  })
}
export const getRestore_Native=(id:any)=>{
  return Request({//还原到作品
    url:'/mock/api/getRestore_Native',
    method:'GET',
    params:{id}
  })
}